//
//  TextbookQuestionsModel.m
//  Learn
//
//  Created by 迟建国 on 2024/4/3.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "TextbookQuestionsModel.h"

@implementation HSResource
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"items": [HSItem class]};
}
@end

@implementation HSItem
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"scores": [HSScore class],@"questions": [HSQuestion class]};
}
@end

@implementation HSQuestion

+ (NSDictionary *)mj_objectClassInArray {
    return @{@"options": [HSQuestionOption class],@"children": [HSQuestion class],@"textModule": [HSQuestionTextModule class]};
}
-(NSString *)recordPath {
    
if (_recordPath.length == 0) {
        
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *name = [NSString stringWithFormat:@"/%@/%.f_%@",lApp.useModel.username,[[NSDate date] timeIntervalSince1970],self.versionId];
    NSString *fileName = [NSString stringWithFormat:@"%@.mp3",name];
    _recordPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:fileName];
    
    }
    return _recordPath;
   
}
@end

@implementation HSQuestionOption
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"value": [HSValue class]};
}
@end

@implementation HSValue
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"attachments": [HSValueAttachment class]};
}
@end

@implementation HSValueAttachment

@end

@implementation HSQuestionTextModule

@end

@implementation HSTrunk
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"attachments": [HSValueAttachment class]};
}
@end

@implementation HSScore

@end

@implementation HSTemplateSettings

@end

@implementation HSListeningAndSpeakingRule

@end

@implementation HSResourceH5
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"parts": [HSPart class]};
}
@end

@implementation HSPart
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"children": [HSChild class]};
}
@end

@implementation HSChild
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"options": [HSPurpleOption class],@"attachments": [HSChildAttachment class],@"children": [HSChild class],@"textModule": [HSPurpleTextModule class]};
}
@end

@implementation HSChildAttachment

@end

@implementation HSPurpleOption
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"attachments": [HSChildAttachment class]};
}
@end

@implementation HSRefInfo

@end

@implementation HSPurpleTextModule

@end

@implementation TextbookQuestionsModel

@end

